
var express = require('express');

//1 创建服务器
var webServer = express();

//2中间件
webServer.use('/',function(res,rep,next){
    console.log('请求开始');
    next();
});


//get请求
webServer.get('/',function(res,rep){
    console.log(res.query);
    console.log('get 请求');
    rep.send('hello World');

});

//post请求
webServer.post('/',function(res,rep){
    console.log(res);
    console.log('post 请求');

});

webServer.listen(8060,'120.78.218.126');


